package com.ncs.dao;

import com.ncs.page.PageResult;
import com.ncs.pojo.Product;
import com.ncs.query.ProductQuery;
import com.ncs.vo.ProductVo;

import java.util.List;
import java.util.Map;

/**
 * @author yinyin
 * @create 2021/07/14 下午 7:37
 */
public interface ProductDao {

    void save(Product product);
    void update(Product product);
    void delete(Long id);
    Product findOne(Long id);
    List<Product> findAll();
    public List<Product> query(ProductQuery productQuery);
    PageResult queryPage(ProductQuery query);
    Product findByName(ProductVo productVo);
    Product findByMap(Map<String,Object> map);
}
